package edu.byu.intex2.data;

import edu.byu.intex2.data.bo.*;
import edu.byu.intex2.data.dao.*;

/**
 *
 * @author Jason Whiting
 */
public class Model
{
  private static Model instance = null;
  public static Employee employee;
  public static Customer customer;

  public static Model getInstance()
  {
    if (instance == null)
    {
      instance = new Model();
    }
    return instance;
  }//getInstance

  ////////////////////////////////////////////
  ///   CREATE methods

  public Salesperson createSalesperson(String guid) throws DataException
  {
    Salesperson sp = SalespersonDAO.getInstance().create(guid);
    return sp;
  }

  public Customer createCustomer(String guid) throws DataException
  {
    Customer cust = CustomerDAO.getInstance().create(guid);
    return cust;
  }

  

}
